package StudyCode.summary.myfile;

import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreatePathsUsingDot {
	public static void main(String[] args) {
		Path path1 = FileSystems.getDefault().getPath("/1/2/./3", "test.txt").normalize();
		System.out.println(path1);
		Path path2 = Paths.get("C:/1/2/3/4/../test.txt").normalize();
		System.out.println(path2);
		Path path3 = Paths.get("C:/1/2/./3/4/../test.txt").normalize();
		System.out.println(path3);
	}
}
